package com.chaofan.domain.exception;

/**
 * @author 李超凡
 * @since 2022/1/12 22:58
 */
public class ConditionException extends RuntimeException {

    private static final long serialVersionUID = -4714738051422701284L;

    private String code;

    public ConditionException(String code, String name) {
        super(name);
        this.code = code;
    }

    public ConditionException(String name) {
        super(name);
        code = "500";
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
